package com.lljin.study.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lljin
 * @description TODO
 * @date 2020/7/13 23:09
 */
@FeignClient("user-service")
public interface UserServiceFeignClient {

    @GetMapping("/user/{name}")
    String user(@PathVariable(value = "name") String name);

    @GetMapping("/user/order/{userId}")
    String userOrder(@PathVariable(value = "userId") String userId);
}
